function req(param={}) {
							let sucFunc = typeof param.success == 'function';
							let failFunc = typeof param.fail == 'function';
							if (sucFunc || failFunc) {
								api.ajax(param, (ret, err) => {
									if (ret) {
										sucFunc && param.success(ret);
									} else {
										failFunc && param.fail(err);
									}
								});
							} else {
								return new Promise((resolve, reject) => {
									api.ajax(param, (ret, err) => {
										if (ret) {
											resolve(ret);
										} else {
											reject(err);
										}
									});
								});
							}
						};
						export default req;